//
//  CAttentionDetail.h
//  HCHK_iphone
//
//  Created by yilong zhang on 12-4-27.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "CUser.h"
#import "CRootCtrlManager.h"
#import "CDownLoadManager.h"

@class CAttentionCell;

@protocol AttentionCellDelegate;

@interface CAttentionDetail : UIView <UISearchBarDelegate, UITableViewDelegate, UITableViewDataSource, OperationDelegate, AttentionCellDelegate>

@property (nonatomic, assign) UISearchBar   *m_SearchBar;
@property (nonatomic, assign) UIScrollView  *m_Scroll;
@property (nonatomic, assign) UITableView   *m_TableView;
@property (nonatomic, assign) UITableViewCell*m_Cell;
@property (nonatomic, assign) UIView        *m_FootView;
@property (nonatomic, assign) long          m_lUserID;
@property (nonatomic, assign) NSMutableArray*m_Data;
@property (nonatomic, assign) int           m_nOpType;
@property (nonatomic, retain) CTask         *m_Task;
@property (nonatomic, assign) CAscCounter   *m_NetCnt;

@property (nonatomic, assign) UIView    *m_LoadView;
@property (nonatomic, assign) BOOL      m_IsLoading;
@property (nonatomic, assign) BOOL      m_IsPageEnd;

@property (nonatomic, assign) CGFloat   m_fLat;
@property (nonatomic, assign) CGFloat   m_fLog;
@property (nonatomic, retain) id        m_Condition;

-(void)SetAttentionDetailInfo:(NSArray*)data Lat:(CGFloat)lat Log:(CGFloat)log;

//loadview
-(void)SetUpLoadView;
-(void)ShowLoadView;
-(void)HiddenLoadView;

//footview
-(void)ShowFootView;
-(void)HiddenFootView;

-(void)ClearDatas;
-(void)AddFood:(NSArray*)datas;

-(void)AddAttention:(id)value Cell:(CAttentionCell*)cell;
-(void)CommitAddAttention:(int)index Value:(id)value;
-(void)ReceiveAddAttentionReponse:(NSDictionary*)data Type:(int)type;

//search
-(void)SearchProduct:(NSString*)value;

//request
-(void)CommitGetMoreRequest;
-(void)ReceiveMoreReponse:(NSDictionary *)data;
//people
-(void)CommitMorePeopleRequest;
-(void)ReceiveMorePeopleResponse:(NSDictionary*)data;
//food
-(void)CommitMoreProductRequest;
-(void)ReceiveMoreProductResponse:(NSDictionary*)data;
//address
-(void)CommitMoreAddressRequest;
-(void)ReceiveMoreAddressReponse:(NSDictionary*)data;

@end
